<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display" %>
<%@ page contentType="text/html;charset=utf-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Buscar Beneficiario</title>


<script language="javascript">
  function enviar(locacion){
    document.frmactivarvfl.action=locacion;
    document.frmactivarvfl.submit();
  }
  
  function enviar1(locacion1)
  {
    document.frmactivarvfl.action=locacion1;
    document.frmactivarvfl.submit();
  }
</script>


</head>
<body>

 <link href="<%= request.getContextPath() + "/css/bloques.css" %>" rel="stylesheet" type="text/css">
 
 
  <form name="frmactivarvfl" method="get">
    <DIV align="center">
      <logic:notPresent name="dominioeliminados">
         <DIV align="center" class="titulosenblanco"><%=session.getAttribute("msg")%></DIV>
          <%session.removeAttribute("msg");%>
      </logic:notPresent>
      <logic:present name="dominioeliminados">
        <table cellspacing="3" cellpadding="2" border="0" width="70%" align="center">
          <tr>
            <td>
            <DIV align="center">
              <display:table name="sessionScope.dominioeliminados" id="activarvfl" cellpadding="3" cellspacing="1" style="width:50%" class="bordestable">
                <display:column headerClass="headerTable" title="Valor" class="Numero" sortable="true" group="1">
                  <div align="center">
                    <bean:write name="activarvfl" property="descripcionvf"/>
                  </div>
                </display:column>
                <display:column headerClass="headerTable" title="activarvfl" class="Numero" sortable="true">
                  <DIV align="center">
                    <input type="checkbox" name="<bean:write name="activarvfl" property="codigovfl"/>" value="<bean:write name="activarvfl" property="codigovfl"/>"/>
                  </DIV>
                </display:column>
              </display:table>
            </DIV>
            </td>
          </tr>
        </table>
      </logic:present>
    </DIV>
    <%
      String codigo = (String)session.getAttribute("codatri");
      if((Object)codigo==null)
        codigo = request.getParameter("codatributo");  
      String tipo  = (String)session.getAttribute("tipovalorflex");
      String Ruta = "'"+request.getContextPath() + "/subprogramas/atributos/ActivacionBien.do'"; 
      String Ruta2 = "'"+request.getContextPath() + "/BuscarDominios.do'"; 
    %>
      <input type="HIDDEN" name="codatributo" value="<%=codigo%>"/>
      <input type="HIDDEN" name="tipovalorflex" value="<%=tipo%>"/>
    
    <DIV align="center">
     <br/>
     <logic:present name="dominioeliminados">
       
        <input type="button" onclick="enviar(<%=Ruta%>)" value="Activar"/>
      </logic:present>
      <br><br>
      <input type="image" onclick="enviar1(<%=Ruta2%>)" src="<%= request.getContextPath() + "/images/b_atras.gif"%>"/>
    </DIV>
  </form>
</body>
</html>
